package com.kun.oa.mapper;

import com.kun.oa.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname AccountMapper
 * @Created by FangKun
 * @Date 2023/1/2 0002 下午 18:00
 */
@Mapper
public interface AccountMapper extends MyBatisBaseDao<Account,Integer,AccountExample> {
    List<Account> selectByPermission();

    Account validataAccount(String loginName, String password);

    Account selectById(int id);

    int updatePasswordByAdmin(@Param("id") Integer id, @Param("password") String password);
}
